package com.networking.controller;

import com.networking.util.SocketConnectionClientUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpSession;

/**
 * function
 * Created by Administrator on 2017/1/6.
 */
@Controller
@RequestMapping("/networking")
public class NetworkingController {

    @RequestMapping(value = "/tcpsend",method = {RequestMethod.GET,RequestMethod.POST})
    public void tcpsend(){
        SocketConnectionClientUtil sccu = new SocketConnectionClientUtil("127.0.0.1",7777);
        //SocketConnectionClientUtil sccu2 = new SocketConnectionClientUtil("192.168.0.11",8080);
        sccu.sendMessage();
    }

}
